// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import echarts from 'echarts'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import Vuex from 'vuex'
import API from '@/api/'
import helps from '@/api/parts'
import vuexjs from '@/api/vuex'
import apiList from '@/api/apiList'
import china from '~/china'

echarts.registerMap('china',china);
Vue.prototype.$echarts = echarts;


Vue.prototype.$h = helps;
Vue.prototype.http = new API;
Vue.prototype.$DN = apiList.HOST;
Vue.prototype.$IMG = apiList.YUMING;
Vue.use(ElementUI);
Vue.use(MintUI);
Vue.use(Vuex);
// Vue.config.productionTip = false;
const store = new Vuex.Store({
  modules: {
    attribute: vuexjs.moduleClientRoute,   //存放属性
    array: vuexjs.moduleClientarray       //存放数组
  }
});
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
})
